home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Message Dialogs / dancing-links.izs < prev    next >
Text File  |  2005-09-28  |  2KB  |  110 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Dancing Links
  4.  
  5. <!/TITLE>
  6.  
  7. <!DESCRIPTION> (Internet Explorer Only!) This little script will continuously change the highlighted link colors (visited and unvisited links) in Internet Explorer. 
  8. <!/DESCRIPTION> 
  9.  
  10. <!CATEGORY>Messages<!/CATEGORY>
  11.  
  12. <!SCRIPT>
  13. <!-- START OF SCRIPT -->
  14.  
  15.  
  16. <!-- HOW TO INSTALL DANCING LINKS:
  17.  
  18.    1.  Add the first code in the HEAD of your HTML document  -->
  19.  
  20. <!-- STEP ONE: Add the first code to the HEAD of your HTML document  -->
  21.  
  22. <HEAD>
  23.  
  24. <SCRIPT LANGUAGE="JavaScript">
  25.  
  26. <!-- Begin
  27. function initArray() {
  28. for (var i = 0; i < initArray.arguments.length; i++) {
  29. this[i] = initArray.arguments[i];
  30. }
  31. this.length = initArray.arguments.length;
  32. }
  33. var colors = new initArray(
  34. "red",
  35. "blue",
  36. "green",
  37. "purple",
  38. "black",
  39. "tan",
  40. "red");
  41. delay = .5; // seconds
  42. link = 0;
  43. vlink = 2;
  44. function linkDance() {
  45. link = (link+1)%colors.length;
  46. vlink = (vlink+1)%colors.length;
  47. document.linkColor = colors[link];
  48. document.vlinkColor = colors[vlink];
  49. setTimeout("linkDance()",delay*1000);
  50. }
  51. linkDance();
  52. // End -->
  53. </script>
  54.  
  55.  
  56.  
  57. <!-- END OF SCRIPT -->
  58. <!/SCRIPT>
  59.  
  60. <!PREVIEW>
  61. <!-- START OF SCRIPT -->
  62.  
  63.  
  64. <!-- HOW TO INSTALL DANCING LINKS:
  65.  
  66.    1.  Add the first code in the HEAD of your HTML document  -->
  67.  
  68. <!-- STEP ONE: Add the first code to the HEAD of your HTML document  -->
  69.  
  70. <HEAD>
  71.  
  72. <SCRIPT LANGUAGE="JavaScript">
  73.  
  74. <!-- Begin
  75. function initArray() {
  76. for (var i = 0; i < initArray.arguments.length; i++) {
  77. this[i] = initArray.arguments[i];
  78. }
  79. this.length = initArray.arguments.length;
  80. }
  81. var colors = new initArray(
  82. "red",
  83. "blue",
  84. "green",
  85. "purple",
  86. "black",
  87. "tan",
  88. "red");
  89. delay = .5; // seconds
  90. link = 0;
  91. vlink = 2;
  92. function linkDance() {
  93. link = (link+1)%colors.length;
  94. vlink = (vlink+1)%colors.length;
  95. document.linkColor = colors[link];
  96. document.vlinkColor = colors[vlink];
  97. setTimeout("linkDance()",delay*1000);
  98. }
  99. linkDance();
  100. // End -->
  101. </script>
  102.  
  103.  
  104.  
  105.  
  106. <!-- END OF SCRIPT -->
  107. <!/PREVIEW>
  108.  
  109. <!RELATED>NONE<!/RELATED>
  110.